package com.service.webservice.server;

import javax.xml.ws.Endpoint;

import com.service.other.ServerConfig;
import com.service.webservice.in.RoadMixingServer;
import com.service.webservice.out.WebServiceServer_MixingImpl;

public class WebServiceServer_Mixing {

	/**
	 * 启动服务
	 */
	public void publish() {
		String ip = ServerConfig.instance().mixing_webservice_server_ip;
		int port = ServerConfig.instance().mixing_webservice_server_port;
		String address = "http://" + ip + ":" + port + "/WebServiceServer_MixingImpl";
		
		WebServiceServer_MixingImpl wsServer = new WebServiceServer_MixingImpl(new RoadMixingServer());
		Endpoint.publish(address , wsServer);
		//前置拦截器
//		endpoint.getInInterceptors().add(new AuthInterceptor());
		
		System.out.println(address+"?wsdl");
	}
	
}
